package com.k2data.k2app.domain.po;

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.Data;

import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;
import java.io.Serializable;
import java.time.ZonedDateTime;

/**
 * @author lidong9144@163.com 17-3-20.
 */
@Data
@Table(name = "r_device_monitor_point")
@JsonInclude(JsonInclude.Include.NON_NULL)
public class RDeviceMonitorPoint implements Serializable {

    @Transient
    private static final long serialVersionUID = 5882423412929404918L;

    @JsonIgnore
    @Id
    @GeneratedValue(generator = "JDBC")
    private Long id;
    private Long rootId;
    private Long deviceId;
    private Long monitorPointId;
    private Integer channelId;
    @Transient
    private String channelName;
    @JsonIgnore
    private String name;
    private String bearingName;
    private Double gtLimit;
    private Double ggtLimit;
    private Double ltLimit;
    private Double gltLimit;
    private Integer state;
    private Long gtRuleId;
    private Long ggtRuleId;
    private Long ltRuleId;
    private Long gltRuleId;
    private Integer keyId;
    private Integer stationId;
    private Integer orientDegree;
    private Integer type;
    private String unit;
    @JsonIgnore
    private ZonedDateTime createTime;
    @JsonIgnore
    private ZonedDateTime updateTime;

    @Transient
    @JsonIgnore
    private String deviceName;
    @Transient
    @JsonIgnore
    private String nameEn;
    @Transient
    @JsonIgnore
    private String deviceNo;

}
